﻿using System.Net.Http;

namespace Earthwatchers.Services.Security
{
    public class TigAuthenticationWebClient
    {
        public static bool Authenticate(string url)
        {
            var httpClient = new HttpClient();
            var httpResponseMessage=httpClient.GetAsync(url).Result;
            return !httpResponseMessage.Content.ReadAsString().Contains("invalid");
        }
    }
}